package com.wnxy.carlusermanageassembly.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wnxy.carl.dto.MyMessageDTO;
import com.wnxy.carl.dto.RegisterDTO;
import com.wnxy.carl.dto.UserDTO;
import com.wnxy.carl.param.*;
import com.wnxy.carlusermanageassembly.entity.User;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author Lucas
 * @since 2021-11-12
 */
public interface IUserService extends IService<User> {
    //账号登陆
    public UserDTO accountLogin(PasswordParam passwordParam);
    //手机号登陆
    public UserDTO phoneLogin(ShortMessageParam messageParam);
    //手机号发送验证码
    public String phoneCode(String phone);
    //用户名查询
    public User findUserName(String account);
    //账号查询
    public User findAccount(String account);
    //id查询
    public UserDTO findUserById(Integer userId);
    //id查询返回User
    public User findUserId(Integer userId);
    //手机号查询
    public User findPhone(String phone);
    //身份证号查询
    public User chekeIdCard(String idCard);
    //注册账号
    public RegisterDTO register(RegisterParam registerParam);
    //修改密码
    public void amendPassword(AmendPasswordParam amendPasswordParam);
    //修改我的信息
    public MyMessageDTO amendMessage(AmendMessageParam amendMessageParam);
    //修改积分，状态， UserDTO
    public UserDTO andminAmendUser(AndminAmendParam andminAmendParam);


}
